import { defineStore } from 'pinia'
import { APP_TABBAR } from '@/sheep/config/index.js'

const app = defineStore({
  id: 'app',
  state: () => ({
    appInfo: {},
    share: {}, // 全局分享信息
    tabbar: APP_TABBAR,
    pageH: 0
  }),
  actions: {
    async init() {
      // #ifdef MP
			
      // #endif
    }
  },
  // pinia 数据持久化处理，插件pinia-plugin-persist-uni
  persist: {
    enabled: false,
    strategies: [
      {
        key: 'app-store'
      }
    ]
  }
})

export default app
